package com.marvels.product.param.service;

import java.util.Map;

import com.github.pagehelper.PageInfo;
import com.marvels.common.exception.MarvelsBusinessException;
import com.marvels.product.param.dto.McptPenaltyFeeDTO;
import com.marvels.product.param.dto.McptProduct;

public interface PenaltyFeeService {

	PageInfo<McptPenaltyFeeDTO> getPageInfoByParam(Map<String, Object> param) throws MarvelsBusinessException;

	McptPenaltyFeeDTO getEntityByPrimaryKey(Long penaltyFeeId) throws MarvelsBusinessException;

	int insert(McptPenaltyFeeDTO dto) throws MarvelsBusinessException;

	int updateByPrimaryKey(McptPenaltyFeeDTO dto) throws MarvelsBusinessException;

	int updateStatus(McptPenaltyFeeDTO dto) throws MarvelsBusinessException;
	
	/**根据小类违约金code查询违约金
	 * @author 娄凯琦
	 * @date 2018年5月9日  
	 * @param dto
	 * @return
	 * @throws MarvelsBusinessException
	 */
	public McptPenaltyFeeDTO getPenaltyFeeByPenaltyFeeCode(McptProduct dto) throws MarvelsBusinessException;
	/**
	 * 根据主键删除记录
	 * @param dto
	 * @return
	 * @throws MarvelsBusinessException
	 */
	public int delete(McptPenaltyFeeDTO dto) throws MarvelsBusinessException;
}
